﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ViewStockCard.aspx.cs" Inherits="Maintain_supplier_information.ViewStockCard" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   
    <style type="text/css">
        .auto-style1 {
            height: 30px;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <h2>View Stock Card</h2>
        <br />
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ForeColor="Red" />
          <fieldset>
    <legend>Search by:</legend>
   
              <table class="table-condensed">
                  <tr>
                      <td>
                          <asp:Label ID="lbl_Category" runat="server" Text="Category:"></asp:Label>
                      </td>
                      <td>
                          <asp:DropDownList AutoPostBack="true" ID="ddl_category" runat="server" OnSelectedIndexChanged="ddl_category_SelectedIndexChanged" CssClass="form-control" Width="117px">
                          </asp:DropDownList>
                      </td>
                      <td>&nbsp;</td>
                      <td>
                          <asp:Label ID="lbl_ItemName" runat="server" Text="ItemName:"></asp:Label>
                      </td>
                      <td colspan="2">
                          <asp:DropDownList ID="ddl_itemName" runat="server" CssClass="form-control" Width="311px">
                          </asp:DropDownList>
                      </td>
                  </tr>
                  <tr>
                      <td>
                          <asp:Label ID="lbl_FromDate" runat="server" Text="From Date:"></asp:Label>
                          </td>
                      <td>
                          <asp:TextBox ID="txt_fromDate" runat="server" Enabled="False" CssClass="form-control" Width="225px"></asp:TextBox>
                          </td>
                      <td>
                          <asp:ImageButton ID="imgbtn_frmdate" runat="server" Height="22px" ImageUrl="~/Images/calendar.jpg" OnClick="imgbtn_frmdate_Click" Width="39px" CausesValidation="False" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please select From Date" ControlToValidate="txt_fromDate" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                          
                      </td>
                      <td>
                          <asp:Label ID="lbl_toDate" runat="server" Text="To Date:"></asp:Label>
                          </td>
                      <td>
                          <asp:TextBox ID="txt_toDate" runat="server" Enabled="False" CssClass="form-control" Width="225px"></asp:TextBox>
                          </td>
                      <td>
                          <asp:ImageButton ID="imgbtn_todate" runat="server" Height="22px" ImageUrl="~/Images/calendar.jpg" OnClick="imgbtn_todate_Click" Width="34px" CausesValidation="False" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please select To Date" ControlToValidate="txt_toDate" ForeColor="Red">*</asp:RequiredFieldValidator>       
                      </td>
                  </tr>
                  <tr>
                      <td>&nbsp;</td>
                      <td>
                          <asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged" Width="225px"></asp:Calendar>
                      </td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>
                          <asp:Calendar ID="Calendar2" runat="server" OnSelectionChanged="Calendar2_SelectionChanged" Width="225px"></asp:Calendar>
                      </td>
                      <td>&nbsp;</td>
                  </tr>
                  <tr>
                      <td colspan="6" align="center">
                          <asp:Button ID="btn_View" runat="server" OnClick="btn_View_Click" Text="View" CssClass="btn-primary" Width="71px" />
                      </td>
                  </tr>
              </table>          
  </fieldset>
    <hr />
    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
    <br />
    <br />
        <table class="table-condensed" width="50%">
            <tr align="left">
                <td class="auto-style3">
                    <asp:Label ID="lbl_1stSupplier" runat="server" Text="1st Supplier:"></asp:Label>
&nbsp;<asp:Label ID="lbl_fsup" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_itemCode" runat="server" Text="Item Code:"></asp:Label>
                    <asp:Label ID="lbl_ic" runat="server"></asp:Label>
                </td>
            </tr>
            <tr align="left">
                <td class="auto-style1">
                    <asp:Label ID="lbl_2ndsupplier" runat="server" Text="2nd Supplier:"></asp:Label>
                    <asp:Label ID="lbl_secsup" runat="server"></asp:Label>
                </td>
                <td class="auto-style1">
                    <asp:Label ID="lbl_itemDescription" runat="server" Text="Item Description:"></asp:Label>
                    <asp:Label ID="lbl_itemdesc" runat="server"></asp:Label>
                </td>
            </tr>
            <tr align="left">
                <td class="auto-style3">
                    <asp:Label ID="lbl_3rdSupplier" runat="server" Text="3rd Supplier:"></asp:Label>
                    <asp:Label ID="lbl_thirdsup" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_UOM" runat="server" Text="UOM:"></asp:Label>
                    <asp:Label ID="lbl_uom_val" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="Gdview_Stockcard" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped table-bordered" Width="50%">
            <Columns>
                <asp:TemplateField HeaderText="Date">
                    <ItemTemplate>
                        <asp:Label ID="Date" runat="server" Text='<%# Eval("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>
                        <asp:Label ID="Description" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quantity">
                    <ItemTemplate>
                        <asp:Label ID="Quantity" runat="server" Text='<%# Eval("AdjustedQty") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Balance">
                    <ItemTemplate>
                        <asp:Label ID="Balance" runat="server" Text='<%# Eval("Balance") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>

    </div>
    
    <br />
</asp:Content>
